package com.zhiyun.mapper;

import com.zhiyun.domain.Course;
import com.zhiyun.domain.SelectCourse;
import com.zhiyun.domain.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SelectCourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SelectCourse record);

    SelectCourse selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(SelectCourse record);

    int exitCourse(@Param("stuId") int stuId,@Param("courseId") Integer courseId);

    List<Student> selectAllStudent(Integer courseId);

    int deleteByCourseIdAndStudentId(@Param("courseId") int courseId,@Param("studentId") Integer studentId);
}